package com.strato.mvc.security.v1_0_0.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.strato.mvc.api.v1_0_0.model.ModelAndView;
import com.strato.mvc.api.v1_0_0.user.Principal;

public interface AuthorityService {

	public boolean check(Principal principal,String authorities);
	
	public boolean check(Principal principal,String[] authorities);

	public boolean check(String opers);
	
	public boolean check(String[] opers);

	public void onUnauthorized(HttpServletRequest request,HttpServletResponse response, ModelAndView mav);
	
}
